package com.study.opensource.spring.condition.annotation;

import com.study.opensource.spring.condition.config.OnSystemPropertyCondition;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 许棒棒
 * @className com.study.study.opensource.spring.condition.annotation.ConditionalOnSystemProperty
 * @description TODO 注解描述
 * @date 2021/04/17 23:30:41
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(OnSystemPropertyCondition.class)
public @interface ConditionalOnSystemProperty {

    String name();

    String value();
}
